#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
using namespace std;
int main()
{
	string s1;
	string s2("hello ldd");
	//for (int i = 0; i < s2.size(); i++)
	//{
	//	cout << s2[i] << " ";
	//}
	//cout << endl;
	//string::iterator it = s2.begin();
	//while (it != s2.end())
	//{
	//	cout << *it << " ";
	//	it++;
	//}
	//cout << endl;
	string::reverse_iterator rit = s2.rbegin();
	while (rit != s2.rend())
	{
		(*rit)++;
		cout << *rit << " ";
		rit++;
	}
	cout << endl;
	for (auto e : s2)
	{
		cout << e << " ";
	}
	cout << endl;
	return 0;
}